package algorithm.linklist;

/**
 * @ Author     ：wangyw
 * @ Date       ：Created in 6:21 下午 2021/7/9
 * @ Description：链表反转
 */
public class NodeRevert {
    public static void main(String[] args) {
        ListNode randomNode = ListNode.getRandomNode(4, 100);
        randomNode.print();
        ListNode revert = randomNode.revert();
        revert.print();
    }
}
